package ping
{
	/**
	 * ...
	 * @author yaempechenki@gmail.com
	 */
	public class PingVK implements IPing
	{
	
		private const _url:String = "https://api.vkontakte.ru/method/getProfiles?uids=XXX&fields=online";
		public function get URL():String {
			return _url.replace("XXX", Settings.SAVED_UIDS);
		}
		
		public function ping(response:String):Boolean {
			var objResponse:Object = JSON.parse(response);
			if (objResponse.error) return false;
			return objResponse.response[0].online;
		}
	}
}